﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link rel="shortcut icon" href="@Url.Content("~/favicon.ico")" />
    <link href="@Url.Content("~/Content/site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/base/jquery-ui-1.8.11.custom.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.cookie.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/js/common.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/js/jquery.blockui.js")" type="text/javascript"></script>
    <script type="text/javascript">
        //控制左边菜单收起和展开
        $(function () {
            $("button, input:submit,a", "table.form_table").not("a.link").button();
            $("input.ui_button").button();

            var switch_status = $.cookie('switch_status');
            var isExpanded = true;

            if (switch_status != null && switch_status == "false") {
                $("#__left_menu").removeClass("expanded");
                $("#__main_body").addClass("expanded");
                isExpanded = false;
            }

            $("#showLeftMenu").bind("click", function () {
                $("#__left_menu").toggleClass("expanded");
                $("#__main_body").toggleClass("expanded");

                if (isExpanded) {
                    $.cookie('switch_status', 'false', {
                        expires: 10, path: '/'
                    });
                    isExpanded = false;
                } else {
                    $.cookie('switch_status', 'true', {
                        expires: 10, path: '/'
                    });
                    isExpanded = true;
                }
            })
        })
    </script>
</head>
<body>
    <div class="page">
        <header id="header">
            <div><a href="/home"><img src="../../Content/images/Inpinke_logo_3.png" style=" height:42px;" alt="" /></a>  </div>
        </header>
        <section id="main">
        <div class="left_menu expanded" id="__left_menu">
         @Html.Partial("_MenuPartial")
        </div>
        <div class="main_body ui-widget-content ui-corner-all" id="__main_body">
          <div class="switch-bar" style="">
                <a id="showLeftMenu" href="javascript:;" style="background-color: #efefef;"><span>点此展开/折叠侧栏</span></a></div>
          @RenderBody()
        </div>
          
        </section>
        <footer>
        @Html.Partial("_FootPartial")
        </footer>
    </div>
</body>
</html>
